<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			label{
				float: left;
				margin: 50px 50px;
				overflow: hidden;
				position: relative;
			}
			label input{
				position: absolute;
				left: -50px;
				top: -50px;
			}
			span{
				float: left;
				width: 50px;
				height: 50px;
				border:3px solid #333;
			}
			input:checked~span{
				background: orangered;
				transition: .5s;
			}
		</style>
	</head>
	<body>
		<label>
			<input type="radio" name="tab" />
			<span></span>
		</label>
		<label>
			<input type="radio" name="tab" />
			<span></span>
		</label>
		<label>
			<input type="radio" name="tab" />
			<span></span>
		</label>
		<label>
			<input type="radio" name="tab" />
			<span></span>
		</label>
	</body>
</html>
